package org.yh.moodpraise.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.yh.moodpraise.dao.UserMapper;
import org.yh.moodpraise.model.User;

import java.util.List;

/**
 * @Author: yh
 * @Date: 2020/6/20
 * @Description:
 */

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;
    public User getUserByUsername(String username) {
        return userMapper.getUserByUsername(username);
    }

    public List<User> getAllUser() {
        return userMapper.getAllUser();
    }
}
